/*
 * Copyright (C) 2012 Johan Boris Iantila jiantila@gmail.com && http://www.facebook.com/johanboris.iantila
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package mg.daloji.antandroyd.ui;

import java.io.Serializable;

import android.graphics.Bitmap;

public class Radio implements Serializable{
	static final private String URL = "url";
	static final private String NOM = "nom";
	static final private String IMAGE = "image";
	static final private String TRI = "trigramme";
	private String url;
	private String trigramme;
	private String nom;
	private Bitmap image;
	
	public Radio()
	{
		url=null;
		nom=null;
		image=null;
		
		
	}
	public Radio(String url,String nom,String trigramme)
	{
		this.url=url;
		this.nom=nom;
		this.trigramme=trigramme;
		
		
	}
	public void setRadio(String attr,String value){
		if(attr.equals(URL)){
			url=value;
		}
		if(attr.equals(NOM)){
			nom=value;
		}
		if(attr.equals(TRI)){
			trigramme=value;
		}
		
	}
	
	public void setUrl(String url){
		this.url=url;
	}
	public void setImage(Bitmap image){
		this.image=image;
	}
	public void setNom(String nom){
		this.nom=nom;
	}
	public String getUrl(){
		return url;
	}
	public String getNom(){
		return nom;
	}
	public String getTrigramme(){
		return trigramme;
	}
	
	public Bitmap getImage(){
	return image;
	}
	
}
